package com.edu.mybatisplus.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum GenderEnum {
    MALE(1, "男"),
    FEMALE(0, "女");

    @EnumValue // 将注解所标识的属性的值存储到数据库中
    private final Integer gender;
    private final String genderName;
}
